<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>NGUI: Next-Gen UI kit: UIFont Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI: Next-Gen UI kit
   &#160;<span id="projectnumber">3.7.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_u_i_font.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_u_i_font-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">UIFont Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_u_i_font.html" title="UIFont contains everything needed to be able to print text. ">UIFont</a> contains everything needed to be able to print text.  
 <a href="class_u_i_font.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for UIFont:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_u_i_font.png" usemap="#UIFont_map" alt=""/>
  <map id="UIFont_map" name="UIFont_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad63c349c190fdbbd99c6d74e859b1ca6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#ad63c349c190fdbbd99c6d74e859b1ca6">MarkAsChanged</a> ()</td></tr>
<tr class="memdesc:ad63c349c190fdbbd99c6d74e859b1ca6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Refresh all labels that use this font.  <a href="#ad63c349c190fdbbd99c6d74e859b1ca6">More...</a><br /></td></tr>
<tr class="separator:ad63c349c190fdbbd99c6d74e859b1ca6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a137703f880d021c995b282d01c9b6bc7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a137703f880d021c995b282d01c9b6bc7">UpdateUVRect</a> ()</td></tr>
<tr class="memdesc:a137703f880d021c995b282d01c9b6bc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forcefully update the font's sprite reference.  <a href="#a137703f880d021c995b282d01c9b6bc7">More...</a><br /></td></tr>
<tr class="separator:a137703f880d021c995b282d01c9b6bc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5aef7dee2d0cb2ade7fc7bd308ea54a2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_b_m_symbol.html">BMSymbol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a5aef7dee2d0cb2ade7fc7bd308ea54a2">MatchSymbol</a> (string text, int offset, int textLength)</td></tr>
<tr class="memdesc:a5aef7dee2d0cb2ade7fc7bd308ea54a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the symbol at the beginning of the specified sequence, if a match is found.  <a href="#a5aef7dee2d0cb2ade7fc7bd308ea54a2">More...</a><br /></td></tr>
<tr class="separator:a5aef7dee2d0cb2ade7fc7bd308ea54a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a32729857e20579b5656344166da424"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a4a32729857e20579b5656344166da424">AddSymbol</a> (string sequence, string <a class="el" href="class_u_i_font.html#aa5c0967c0e7f095410504be6c483125c">spriteName</a>)</td></tr>
<tr class="memdesc:a4a32729857e20579b5656344166da424"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new symbol to the font.  <a href="#a4a32729857e20579b5656344166da424">More...</a><br /></td></tr>
<tr class="separator:a4a32729857e20579b5656344166da424"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7a3de3015cc0169af851551891cdd4a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#ac7a3de3015cc0169af851551891cdd4a">RemoveSymbol</a> (string sequence)</td></tr>
<tr class="memdesc:ac7a3de3015cc0169af851551891cdd4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the specified symbol from the font.  <a href="#ac7a3de3015cc0169af851551891cdd4a">More...</a><br /></td></tr>
<tr class="separator:ac7a3de3015cc0169af851551891cdd4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3e40ea5cc33d1e93c35ae87deeb515e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#ab3e40ea5cc33d1e93c35ae87deeb515e">RenameSymbol</a> (string before, string after)</td></tr>
<tr class="memdesc:ab3e40ea5cc33d1e93c35ae87deeb515e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change an existing symbol's sequence to the specified value.  <a href="#ab3e40ea5cc33d1e93c35ae87deeb515e">More...</a><br /></td></tr>
<tr class="separator:ab3e40ea5cc33d1e93c35ae87deeb515e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46ca89a5999c360e0371830755f03d6d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a46ca89a5999c360e0371830755f03d6d">UsesSprite</a> (string s)</td></tr>
<tr class="memdesc:a46ca89a5999c360e0371830755f03d6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the specified sprite is being used by the font.  <a href="#a46ca89a5999c360e0371830755f03d6d">More...</a><br /></td></tr>
<tr class="separator:a46ca89a5999c360e0371830755f03d6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a398d2742c9f62b34f1f7d804432a86b0"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a398d2742c9f62b34f1f7d804432a86b0">CheckIfRelated</a> (<a class="el" href="class_u_i_font.html">UIFont</a> a, <a class="el" href="class_u_i_font.html">UIFont</a> b)</td></tr>
<tr class="memdesc:a398d2742c9f62b34f1f7d804432a86b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper function that determines whether the two atlases are related.  <a href="#a398d2742c9f62b34f1f7d804432a86b0">More...</a><br /></td></tr>
<tr class="separator:a398d2742c9f62b34f1f7d804432a86b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:af30779b9908c7f46ab5c8bf505954d9e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_b_m_font.html">BMFont</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#af30779b9908c7f46ab5c8bf505954d9e">bmFont</a><code> [get, set]</code></td></tr>
<tr class="memdesc:af30779b9908c7f46ab5c8bf505954d9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the <a class="el" href="class_b_m_font.html" title="BMFont reader. C# implementation of http://www.angelcode.com/products/bmfont/ ">BMFont</a> class directly.  <a href="#af30779b9908c7f46ab5c8bf505954d9e">More...</a><br /></td></tr>
<tr class="separator:af30779b9908c7f46ab5c8bf505954d9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86e01853367d56d758afe87bf7e8b33d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a86e01853367d56d758afe87bf7e8b33d">texWidth</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a86e01853367d56d758afe87bf7e8b33d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Original width of the font's texture in pixels.  <a href="#a86e01853367d56d758afe87bf7e8b33d">More...</a><br /></td></tr>
<tr class="separator:a86e01853367d56d758afe87bf7e8b33d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af767495d4b525462791ce68393080f08"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#af767495d4b525462791ce68393080f08">texHeight</a><code> [get, set]</code></td></tr>
<tr class="memdesc:af767495d4b525462791ce68393080f08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Original height of the font's texture in pixels.  <a href="#af767495d4b525462791ce68393080f08">More...</a><br /></td></tr>
<tr class="separator:af767495d4b525462791ce68393080f08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad62400fa4f50f7969185eabe4765550c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#ad62400fa4f50f7969185eabe4765550c">hasSymbols</a><code> [get]</code></td></tr>
<tr class="memdesc:ad62400fa4f50f7969185eabe4765550c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the font has any symbols defined.  <a href="#ad62400fa4f50f7969185eabe4765550c">More...</a><br /></td></tr>
<tr class="separator:ad62400fa4f50f7969185eabe4765550c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bc70566efaf9ceef62eb3a5e14c1462"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_b_m_symbol.html">BMSymbol</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a3bc70566efaf9ceef62eb3a5e14c1462">symbols</a><code> [get]</code></td></tr>
<tr class="memdesc:a3bc70566efaf9ceef62eb3a5e14c1462"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of symbols within the font.  <a href="#a3bc70566efaf9ceef62eb3a5e14c1462">More...</a><br /></td></tr>
<tr class="separator:a3bc70566efaf9ceef62eb3a5e14c1462"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a824851bcacb2118a318481f80514ebe2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_atlas.html">UIAtlas</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a824851bcacb2118a318481f80514ebe2">atlas</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a824851bcacb2118a318481f80514ebe2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Atlas used by the font, if any.  <a href="#a824851bcacb2118a318481f80514ebe2">More...</a><br /></td></tr>
<tr class="separator:a824851bcacb2118a318481f80514ebe2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af16d67d496ce3ee8879c264f2536a87d"><td class="memItemLeft" align="right" valign="top">Material&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#af16d67d496ce3ee8879c264f2536a87d">material</a><code> [get, set]</code></td></tr>
<tr class="memdesc:af16d67d496ce3ee8879c264f2536a87d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get or set the material used by this font.  <a href="#af16d67d496ce3ee8879c264f2536a87d">More...</a><br /></td></tr>
<tr class="separator:af16d67d496ce3ee8879c264f2536a87d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb3acccdedf17e18207ed31d059b0e58"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#acb3acccdedf17e18207ed31d059b0e58">premultipliedAlpha</a><code> [get]</code></td></tr>
<tr class="memdesc:acb3acccdedf17e18207ed31d059b0e58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the font is using a premultiplied alpha material.  <a href="#acb3acccdedf17e18207ed31d059b0e58">More...</a><br /></td></tr>
<tr class="separator:acb3acccdedf17e18207ed31d059b0e58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80a1309976b73d33980af2c641993802"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a80a1309976b73d33980af2c641993802">premultipliedAlphaShader</a><code> [get]</code></td></tr>
<tr class="memdesc:a80a1309976b73d33980af2c641993802"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the font is using a premultiplied alpha material.  <a href="#a80a1309976b73d33980af2c641993802">More...</a><br /></td></tr>
<tr class="separator:a80a1309976b73d33980af2c641993802"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07bcdef24782b06cdc18294b946ec04d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a07bcdef24782b06cdc18294b946ec04d">packedFontShader</a><code> [get]</code></td></tr>
<tr class="memdesc:a07bcdef24782b06cdc18294b946ec04d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the font is a packed font.  <a href="#a07bcdef24782b06cdc18294b946ec04d">More...</a><br /></td></tr>
<tr class="separator:a07bcdef24782b06cdc18294b946ec04d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7796ece34b1c04935195745fa6391721"><td class="memItemLeft" align="right" valign="top">Texture2D&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a7796ece34b1c04935195745fa6391721">texture</a><code> [get]</code></td></tr>
<tr class="memdesc:a7796ece34b1c04935195745fa6391721"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function that returns the texture used by the font.  <a href="#a7796ece34b1c04935195745fa6391721">More...</a><br /></td></tr>
<tr class="separator:a7796ece34b1c04935195745fa6391721"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affb381d2c3c5cf06e7b4ca3170c09770"><td class="memItemLeft" align="right" valign="top">Rect&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#affb381d2c3c5cf06e7b4ca3170c09770">uvRect</a><code> [get, set]</code></td></tr>
<tr class="memdesc:affb381d2c3c5cf06e7b4ca3170c09770"><td class="mdescLeft">&#160;</td><td class="mdescRight">Offset and scale applied to all UV coordinates.  <a href="#affb381d2c3c5cf06e7b4ca3170c09770">More...</a><br /></td></tr>
<tr class="separator:affb381d2c3c5cf06e7b4ca3170c09770"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5c0967c0e7f095410504be6c483125c"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#aa5c0967c0e7f095410504be6c483125c">spriteName</a><code> [get, set]</code></td></tr>
<tr class="memdesc:aa5c0967c0e7f095410504be6c483125c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sprite used by the font, if any.  <a href="#aa5c0967c0e7f095410504be6c483125c">More...</a><br /></td></tr>
<tr class="separator:aa5c0967c0e7f095410504be6c483125c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41c225d1a34129386c51e0a2a5ef1246"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a41c225d1a34129386c51e0a2a5ef1246">isValid</a><code> [get]</code></td></tr>
<tr class="memdesc:a41c225d1a34129386c51e0a2a5ef1246"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether this is a valid font.  <a href="#a41c225d1a34129386c51e0a2a5ef1246">More...</a><br /></td></tr>
<tr class="separator:a41c225d1a34129386c51e0a2a5ef1246"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7c307a7d98035f7bb1a26140f85eec6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#ad7c307a7d98035f7bb1a26140f85eec6">size</a><code> [get, set]</code></td></tr>
<tr class="separator:ad7c307a7d98035f7bb1a26140f85eec6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a616282c68579415d7b68f24e230e0091"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a616282c68579415d7b68f24e230e0091">defaultSize</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a616282c68579415d7b68f24e230e0091"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pixel-perfect size of this font.  <a href="#a616282c68579415d7b68f24e230e0091">More...</a><br /></td></tr>
<tr class="separator:a616282c68579415d7b68f24e230e0091"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7083aa4b1f96eb9ee1566643dc8e7db2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_sprite_data.html">UISpriteData</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a7083aa4b1f96eb9ee1566643dc8e7db2">sprite</a><code> [get]</code></td></tr>
<tr class="memdesc:a7083aa4b1f96eb9ee1566643dc8e7db2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the sprite used by the font, if any.  <a href="#a7083aa4b1f96eb9ee1566643dc8e7db2">More...</a><br /></td></tr>
<tr class="separator:a7083aa4b1f96eb9ee1566643dc8e7db2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a270be0f31fed62c6b4d9ea7735a2c60a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_font.html">UIFont</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a270be0f31fed62c6b4d9ea7735a2c60a">replacement</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a270be0f31fed62c6b4d9ea7735a2c60a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setting a replacement atlas value will cause everything using this font to use the replacement font instead. Suggested use: set up all your widgets to use a dummy font that points to the real font. Switching that font to another one (for example an eastern language one) is then a simple matter of setting this field on your dummy font.  <a href="#a270be0f31fed62c6b4d9ea7735a2c60a">More...</a><br /></td></tr>
<tr class="separator:a270be0f31fed62c6b4d9ea7735a2c60a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5395c66f1399bfbd281b015f606ebf6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#af5395c66f1399bfbd281b015f606ebf6">isDynamic</a><code> [get]</code></td></tr>
<tr class="memdesc:af5395c66f1399bfbd281b015f606ebf6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the font is dynamic.  <a href="#af5395c66f1399bfbd281b015f606ebf6">More...</a><br /></td></tr>
<tr class="separator:af5395c66f1399bfbd281b015f606ebf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18bdcf47c6eae30ca39115541f8386a1"><td class="memItemLeft" align="right" valign="top">Font&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a18bdcf47c6eae30ca39115541f8386a1">dynamicFont</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a18bdcf47c6eae30ca39115541f8386a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get or set the dynamic font source.  <a href="#a18bdcf47c6eae30ca39115541f8386a1">More...</a><br /></td></tr>
<tr class="separator:a18bdcf47c6eae30ca39115541f8386a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e5c37732786c5f4cf319173d46232d6"><td class="memItemLeft" align="right" valign="top">FontStyle&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_font.html#a9e5c37732786c5f4cf319173d46232d6">dynamicFontStyle</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a9e5c37732786c5f4cf319173d46232d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get or set the dynamic font's style.  <a href="#a9e5c37732786c5f4cf319173d46232d6">More...</a><br /></td></tr>
<tr class="separator:a9e5c37732786c5f4cf319173d46232d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_u_i_font.html" title="UIFont contains everything needed to be able to print text. ">UIFont</a> contains everything needed to be able to print text. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a4a32729857e20579b5656344166da424"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIFont.AddSymbol </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>sequence</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>spriteName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a new symbol to the font. </p>

</div>
</div>
<a class="anchor" id="a398d2742c9f62b34f1f7d804432a86b0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool UIFont.CheckIfRelated </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_u_i_font.html">UIFont</a>&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_u_i_font.html">UIFont</a>&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Helper function that determines whether the two atlases are related. </p>

</div>
</div>
<a class="anchor" id="ad63c349c190fdbbd99c6d74e859b1ca6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIFont.MarkAsChanged </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Refresh all labels that use this font. </p>

</div>
</div>
<a class="anchor" id="a5aef7dee2d0cb2ade7fc7bd308ea54a2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_b_m_symbol.html">BMSymbol</a> UIFont.MatchSymbol </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>textLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieve the symbol at the beginning of the specified sequence, if a match is found. </p>

</div>
</div>
<a class="anchor" id="ac7a3de3015cc0169af851551891cdd4a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIFont.RemoveSymbol </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>sequence</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove the specified symbol from the font. </p>

</div>
</div>
<a class="anchor" id="ab3e40ea5cc33d1e93c35ae87deeb515e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIFont.RenameSymbol </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>before</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>after</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change an existing symbol's sequence to the specified value. </p>

</div>
</div>
<a class="anchor" id="a137703f880d021c995b282d01c9b6bc7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIFont.UpdateUVRect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Forcefully update the font's sprite reference. </p>

</div>
</div>
<a class="anchor" id="a46ca89a5999c360e0371830755f03d6d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool UIFont.UsesSprite </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the specified sprite is being used by the font. </p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a824851bcacb2118a318481f80514ebe2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_atlas.html">UIAtlas</a> UIFont.atlas</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Atlas used by the font, if any. </p>

</div>
</div>
<a class="anchor" id="af30779b9908c7f46ab5c8bf505954d9e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_b_m_font.html">BMFont</a> UIFont.bmFont</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Access to the <a class="el" href="class_b_m_font.html" title="BMFont reader. C# implementation of http://www.angelcode.com/products/bmfont/ ">BMFont</a> class directly. </p>

</div>
</div>
<a class="anchor" id="a616282c68579415d7b68f24e230e0091"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int UIFont.defaultSize</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Pixel-perfect size of this font. </p>

</div>
</div>
<a class="anchor" id="a18bdcf47c6eae30ca39115541f8386a1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Font UIFont.dynamicFont</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get or set the dynamic font source. </p>

</div>
</div>
<a class="anchor" id="a9e5c37732786c5f4cf319173d46232d6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">FontStyle UIFont.dynamicFontStyle</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get or set the dynamic font's style. </p>

</div>
</div>
<a class="anchor" id="ad62400fa4f50f7969185eabe4765550c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIFont.hasSymbols</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether the font has any symbols defined. </p>

</div>
</div>
<a class="anchor" id="af5395c66f1399bfbd281b015f606ebf6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIFont.isDynamic</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether the font is dynamic. </p>

</div>
</div>
<a class="anchor" id="a41c225d1a34129386c51e0a2a5ef1246"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIFont.isValid</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether this is a valid font. </p>

</div>
</div>
<a class="anchor" id="af16d67d496ce3ee8879c264f2536a87d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Material UIFont.material</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get or set the material used by this font. </p>

</div>
</div>
<a class="anchor" id="a07bcdef24782b06cdc18294b946ec04d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIFont.packedFontShader</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether the font is a packed font. </p>

</div>
</div>
<a class="anchor" id="acb3acccdedf17e18207ed31d059b0e58"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIFont.premultipliedAlpha</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether the font is using a premultiplied alpha material. </p>

</div>
</div>
<a class="anchor" id="a80a1309976b73d33980af2c641993802"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIFont.premultipliedAlphaShader</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether the font is using a premultiplied alpha material. </p>

</div>
</div>
<a class="anchor" id="a270be0f31fed62c6b4d9ea7735a2c60a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_font.html">UIFont</a> UIFont.replacement</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Setting a replacement atlas value will cause everything using this font to use the replacement font instead. Suggested use: set up all your widgets to use a dummy font that points to the real font. Switching that font to another one (for example an eastern language one) is then a simple matter of setting this field on your dummy font. </p>

</div>
</div>
<a class="anchor" id="ad7c307a7d98035f7bb1a26140f85eec6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int UIFont.size</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7083aa4b1f96eb9ee1566643dc8e7db2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_sprite_data.html">UISpriteData</a> UIFont.sprite</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieves the sprite used by the font, if any. </p>

</div>
</div>
<a class="anchor" id="aa5c0967c0e7f095410504be6c483125c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string UIFont.spriteName</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sprite used by the font, if any. </p>

</div>
</div>
<a class="anchor" id="a3bc70566efaf9ceef62eb3a5e14c1462"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_b_m_symbol.html">BMSymbol</a>&gt; UIFont.symbols</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>List of symbols within the font. </p>

</div>
</div>
<a class="anchor" id="af767495d4b525462791ce68393080f08"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int UIFont.texHeight</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Original height of the font's texture in pixels. </p>

</div>
</div>
<a class="anchor" id="a7796ece34b1c04935195745fa6391721"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Texture2D UIFont.texture</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience function that returns the texture used by the font. </p>

</div>
</div>
<a class="anchor" id="a86e01853367d56d758afe87bf7e8b33d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int UIFont.texWidth</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Original width of the font's texture in pixels. </p>

</div>
</div>
<a class="anchor" id="affb381d2c3c5cf06e7b4ca3170c09770"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Rect UIFont.uvRect</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Offset and scale applied to all UV coordinates. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/NGUI/Assets/NGUI/Scripts/UI/<a class="el" href="_u_i_font_8cs.html">UIFont.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_u_i_font.html">UIFont</a></li>
    <li class="footer">Generated on Sat Sep 13 2014 05:29:18 for NGUI: Next-Gen UI kit by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
